package io.github.bigbird0101.easycluster;

import java.util.HashMap;
import java.util.Map;

public class URL {
    private String host;
    private Integer port;
    private Map<String,Object> attribute;

    public URL() {
        this(null,null);
    }

    public URL(String host, Integer port) {
       this(host,port,new HashMap<>());
    }

    public URL(String host, Integer port, Map<String, Object> attribute) {
        this.host = host;
        this.port = port;
        this.attribute = attribute;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    public Map<String, Object> getAttribute() {
        return attribute;
    }

    public void setAttribute(Map<String, Object> attribute) {
        this.attribute = attribute;
    }
}
